var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(mode, type, selection) {
    var reactor = "action" + cm.getMapId();
    eval(reactor)(mode, type, selection)
}

function action993131100(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.spawnMobLimit(8645102, 1, 208, -536, 100);
            cm.spawnMobLimit(8645102, 1, 314, -1145, 100);
            cm.spawnMobLimit(8645102, 1, 400, -841, 100);
            cm.spawnMobLimit(8645102, 1, 163, -916, 100);
            cm.spawnMobLimit(8645102, 1, 948, -836, 100);
            cm.spawnMobLimit(8645102, 1, 537, -686, 100);
            cm.spawnMobLimit(8645102, 1, 670, -423, 100);
            cm.spawnMobLimit(8645102, 1, 449, -348, 100);
            cm.spawnMobLimit(8645102, 1, 919, -219, 100);
            cm.spawnMobLimit(8645102, 1, 685, -119, 100);
            cm.spawnMobLimit(8645102, 1, 720, -761, 100);
            cm.addPopupSay(3004304, 2000, "真是群聒噪的家伙。先击退它们，再慢慢聊吧。", "", 0);
            cm.playerMessage(-1, "消灭该区域的所有怪物，才能移动至下一关卡。");
            cm.fieldEffect_ScreenMsg("aswan/stageEff/stage");
            cm.fieldEffect_ScreenMsg("aswan/stageEff/number/1");
            cm.spawnMobLimit(8645102, 1, 429, -1759, 100);
            cm.spawnMobLimit(8645102, 1, 655, -1684, 100);
            cm.spawnMobLimit(8645102, 1, 975, -1455, 100);
            cm.spawnMobLimit(8645102, 1, 970, -1455, 100);
            cm.spawnMobLimit(8645102, 1, 92, -1455, 100);
            cm.spawnMobLimit(8645102, 1, 730, -1220, 100);
            cm.spawnMobLimit(8645102, 1, 260, -1145, 100);
            cm.spawnMobLimit(8645102, 1, 1026, -2107, 100);
            cm.spawnMobLimit(8645102, 1, 457, -2307, 100);
            cm.spawnMobLimit(8645102, 1, 329, -2032, 100);
            cm.spawnMobLimit(8645102, 1, 790, -2040, 100);
            cm.spawnMobLimit(8645102, 1, 918, -2603, 100);
            cm.spawnMobLimit(8645102, 1, 114, -2603, 100);
            cm.spawnMobLimit(8645102, 1, 1060, -2603, 100);
            cm.spawnMobLimit(8645102, 1, 389, -2307, 100);
            cm.dispose()
        }
    }
}

function action993131150(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.spawnMobLimit(8645102, 1, 561, -1147, 100);
            cm.spawnMobLimit(8645102, 1, 929, -1147, 100);
            cm.spawnMobLimit(8645102, 1, 194, -1147, 100);
            cm.spawnMobLimit(8645102, 1, 745, -767, 100);
            cm.spawnMobLimit(8645102, 1, 342, -767, 100);
            cm.spawnMobLimit(8645102, 1, 993, -671, 100);
            cm.spawnMobLimit(8645102, 1, 608, -521, 100);
            cm.spawnMobLimit(8645102, 1, 964, -158, 100);
            cm.spawnMobLimit(8645102, 1, 725, -233, 100);
            cm.spawnMobLimit(8645102, 1, 541, -692, 100);
            cm.spawnMobLimit(8645102, 1, 425, -446, 100);
            cm.playerMessage(-1, "消灭该区域的所有怪物，才能移动至下一关卡。");
            cm.fieldEffect_ScreenMsg("aswan/stageEff/stage");
            cm.fieldEffect_ScreenMsg("aswan/stageEff/number/2");
            cm.spawnMobLimit(8645102, 1, 391, -1147, 100);
            cm.spawnMobLimit(8645102, 1, 880, -1147, 100);
            cm.spawnMobLimit(8645102, 1, 572, -1147, 100);
            cm.spawnMobLimit(8645102, 1, 584, -692, 100);
            cm.spawnMobLimit(8645102, 1, 140, -842, 100);
            cm.spawnMobLimit(8645102, 1, 395, -767, 100);
            cm.spawnMobLimit(8645102, 1, 446, -1147, 100);
            cm.spawnMobLimit(8645102, 1, 813, -1147, 100);
            cm.spawnMobLimit(8645102, 1, 426, -1147, 100);
            cm.spawnMobLimit(8645102, 1, 900, -842, 100);
            cm.spawnMobLimit(8645102, 1, 455, -721, 100);
            cm.spawnMobLimit(8645102, 1, 377, -767, 100);
            cm.spawnMobLimit(8645102, 1, 849, -1806, 100);
            cm.spawnMobLimit(8645102, 1, 823, -1806, 100);
            cm.spawnMobLimit(8645102, 1, 704, -1411, 100);
            cm.spawnMobLimit(8645102, 1, 880, -1343, 100);
            cm.spawnMobLimit(8645102, 1, 423, -1413, 100);
            cm.spawnMobLimit(8645102, 1, 204, -1480, 100);
            cm.spawnMobLimit(8645102, 1, 228, -2368, 100);
            cm.spawnMobLimit(8645102, 1, 162, -2368, 100);
            cm.spawnMobLimit(8645102, 1, 759, -2014, 100);
            cm.spawnMobLimit(8645102, 1, 816, -2007, 100);
            cm.spawnMobLimit(8645102, 1, 407, -2012, 100);
            cm.spawnMobLimit(8645102, 1, 377, -2012, 100);
            cm.spawnMobLimit(8645102, 1, 310, -2668, 100);
            cm.spawnMobLimit(8645102, 1, 935, -2595, 100);
            cm.spawnMobLimit(8645102, 1, 153, -2368, 100);
            cm.spawnMobLimit(8645102, 1, 106, -2368, 100);
            cm.spawnMobLimit(8645102, 1, 439, -2012, 100);
            cm.spawnMobLimit(8645102, 1, 395, -2012, 100);
            cm.spawnMobLimit(8645102, 1, 114, -2368, 100);
            cm.spawnMobLimit(8645102, 1, 161, -2368, 100);
            cm.spawnMobLimit(8645102, 1, 254, -1996, 100);
            cm.spawnMobLimit(8645102, 1, 277, -2012, 100);
            cm.spawnMobLimit(8645102, 1, 161, -2593, 100);
            cm.spawnMobLimit(8645102, 1, 806, -2670, 100);
            cm.dispose()
        }
    }
}

function action993131200(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.spawnMobLimit(8645102, 1, 926, -640, 100);
            cm.spawnMobLimit(8645102, 1, 653, -504, 100);
            cm.spawnMobLimit(8645102, 1, 610, -1121, 100);
            cm.spawnMobLimit(8645102, 1, 255, -896, 100);
            cm.spawnMobLimit(8645102, 1, 977, -654, 100);
            cm.spawnMobLimit(8645102, 1, 720, -535, 100);
            cm.spawnMobLimit(8645102, 1, 397, -579, 100);
            cm.spawnMobLimit(8645102, 1, 678, -300, 100);
            cm.spawnMobLimit(8645102, 1, 417, -375, 100);
            cm.spawnMobLimit(8645102, 1, 935, -88, 100);
            cm.spawnMobLimit(8645102, 1, 750, -163, 100);
            cm.playerMessage(-1, "消灭该区域的所有怪物，才能移动至下一关卡。");
            cm.fieldEffect_ScreenMsg("aswan/stageEff/final");
            cm.spawnMobLimit(8645102, 1, 303, -1443, 100);
            cm.spawnMobLimit(8645102, 1, 420, -1518, 100);
            cm.spawnMobLimit(8645102, 1, 802, -1302, 100);
            cm.spawnMobLimit(8645102, 1, 121, -1295, 100);
            cm.spawnMobLimit(8645102, 1, 725, -2114, 100);
            cm.spawnMobLimit(8645102, 1, 618, -2041, 100);
            cm.spawnMobLimit(8645102, 1, 108, -2087, 100);
            cm.spawnMobLimit(8645102, 1, 887, -1772, 100);
            cm.spawnMobLimit(8645102, 1, 434, -1801, 100);
            cm.spawnMobLimit(8645102, 1, 258, -2118, 100);
            cm.dispose()
        }
    }
}

function action993132100(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.spawnMobLimit(8645103, 1, -1222, 56, 100);
            cm.spawnMobLimit(8645103, 1, -963, 56, 100);
            cm.spawnMobLimit(8645103, 1, -797, -628, 100);
            cm.spawnMobLimit(8645103, 1, -1059, -628, 100);
            cm.spawnMobLimit(8645103, 1, -1279, -628, 100);
            cm.spawnMobLimit(8645103, 1, -1479, -628, 100);
            cm.spawnMobLimit(8645103, 1, -1701, -628, 100);
            cm.spawnMobLimit(8645103, 1, -1617, -135, 100);
            cm.spawnMobLimit(8645103, 1, -1109, -349, 100);
            cm.spawnMobLimit(8645103, 1, -1624, -352, 100);
            cm.spawnMobLimit(8645103, 1, -1553, 56, 100);
            cm.spawnMobLimit(8645103, 1, -1092, -134, 100);
            cm.spawnMobLimit(8645103, 1, -2104, 56, 100);
            cm.spawnMobLimit(8645103, 1, -1855, 56, 100);
            cm.playerMessage(-1, "消灭该区域的所有怪物，才能移动至下一关卡。");
            cm.fieldEffect_ScreenMsg("aswan/stageEff/stage");
            cm.fieldEffect_ScreenMsg("aswan/stageEff/number/1");
            cm.spawnMobLimit(8645103, 1, -175, 56, 100);
            cm.spawnMobLimit(8645103, 1, -321, 56, 100);
            cm.spawnMobLimit(8645103, 1, -591, 56, 100);
            cm.spawnMobLimit(8645103, 1, 249, -418, 100);
            cm.spawnMobLimit(8645103, 1, -89, -418, 100);
            cm.spawnMobLimit(8645103, 1, 221, -130, 100);
            cm.spawnMobLimit(8645103, 1, -235, -130, 100);
            cm.spawnMobLimit(8645103, 1, -422, -628, 100);
            cm.spawnMobLimit(8645103, 1, -534, -628, 100);
            cm.spawnMobLimit(8645103, 1, -529, -628, 100);
            cm.spawnMobLimit(8645103, 1, 104, 56, 100);
            cm.spawnMobLimit(8645103, 1, 796, -215, 100);
            cm.spawnMobLimit(8645103, 1, 1161, -741, 100);
            cm.spawnMobLimit(8645103, 1, 566, -741, 100);
            cm.spawnMobLimit(8645103, 1, 968, 56, 100);
            cm.spawnMobLimit(8645103, 1, 572, 56, 100);
            cm.dispose()
        }
    }
}

function action993132150(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.spawnMobLimit(8645103, 1, -1816, -489, 100);
            cm.spawnMobLimit(8645103, 1, -978, -787, 100);
            cm.spawnMobLimit(8645103, 1, -1632, -489, 100);
            cm.spawnMobLimit(8645103, 1, -2071, -489, 100);
            cm.playerMessage(-1, "消灭该区域的所有怪物，才能移动至下一关卡。");
            cm.fieldEffect_ScreenMsg("aswan/stageEff/stage");
            cm.fieldEffect_ScreenMsg("aswan/stageEff/number/2");
            cm.spawnMobLimit(8645103, 1, -1025, -1189, 100);
            cm.spawnMobLimit(8645103, 1, -934, -1189, 100);
            cm.spawnMobLimit(8645103, 1, -937, -787, 100);
            cm.spawnMobLimit(8645103, 1, -219, -342, 100);
            cm.spawnMobLimit(8645103, 1, -335, -1189, 100);
            cm.spawnMobLimit(8645103, 1, 77, -342, 100);
            cm.spawnMobLimit(8645103, 1, -872, -787, 100);
            cm.spawnMobLimit(8645103, 1, 43, -342, 100);
            cm.spawnMobLimit(8645103, 1, 514, -741, 100);
            cm.spawnMobLimit(8645103, 1, 491, -741, 100);
            cm.spawnMobLimit(8645103, 1, 296, -1024, 100);
            cm.spawnMobLimit(8645103, 1, 642, -1024, 100);
            cm.spawnMobLimit(8645103, 1, 1157, -741, 100);
            cm.spawnMobLimit(8645103, 1, -72, -342, 100);
            cm.spawnMobLimit(8645103, 1, -74, -342, 100);
            cm.spawnMobLimit(8645103, 1, -44, -342, 100);
            cm.spawnMobLimit(8645103, 1, 686, -1024, 100);
            cm.spawnMobLimit(8645103, 1, 670, -1024, 100);
            cm.dispose()
        }
    }
}

function action993132200(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.spawnMobLimit(8645103, 1, -1689, -717, 100);
            cm.spawnMobLimit(8645103, 1, -1549, -370, 100);
            cm.spawnMobLimit(8645103, 1, -1785, -370, 100);
            cm.spawnMobLimit(8645103, 1, -1398, -370, 100);
            cm.spawnMobLimit(8645103, 1, -2067, -370, 100);
            cm.spawnMobLimit(8645103, 1, -1527, -717, 100);
            cm.playerMessage(-1, "消灭该区域的所有怪物，才能移动至下一关卡。");
            cm.fieldEffect_ScreenMsg("aswan/stageEff/final");
            cm.spawnMobLimit(8645103, 1, -937, -592, 100);
            cm.spawnMobLimit(8645103, 1, -452, -592, 100);
            cm.spawnMobLimit(8645103, 1, -391, -838, 100);
            cm.spawnMobLimit(8645103, 1, 203, -342, 100);
            cm.spawnMobLimit(8645103, 1, 46, -342, 100);
            cm.spawnMobLimit(8645103, 1, -762, -838, 100);
            cm.spawnMobLimit(8645103, 1, 293, -342, 100);
            cm.spawnMobLimit(8645103, 1, 933, -693, 100);
            cm.spawnMobLimit(8645103, 1, 1321, -693, 100);
            cm.spawnMobLimit(8645103, 1, 531, -342, 100);
            cm.spawnMobLimit(8645103, 1, -752, -592, 100);
            cm.spawnMobLimit(8645103, 1, -718, -838, 100);
            cm.spawnMobLimit(8645103, 1, 37, -342, 100);
            cm.spawnMobLimit(8645103, 1, -44, -342, 100);
            cm.spawnMobLimit(8645103, 1, -762, -838, 100);
            cm.spawnMobLimit(8645103, 1, 513, -342, 100);
            cm.spawnMobLimit(8645103, 1, 941, -693, 100);
            cm.spawnMobLimit(8645103, 1, 233, -935, 100);
            cm.spawnMobLimit(8645103, 1, 245, -935, 100);
            cm.spawnMobLimit(8645103, 1, 1183, -693, 100);
            cm.spawnMobLimit(8645103, 1, 606, -342, 100);
            cm.dispose()
        }
    }
}

function action993133100(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.dispose()
        }
    }
}

function action993133150(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.dispose()
        }
    }
}

function action993133200(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.dispose()
        }
    }
}

function action993134100(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.spawnMobLimit(8645105, 1, -71, 63, 100);
            cm.spawnMobLimit(8645105, 1, 1383, 63, 100);
            cm.spawnMobLimit(8645105, 1, 975, 63, 100);
            cm.spawnMobLimit(8645105, 1, 538, 63, 100);
            cm.spawnMobLimit(8645105, 1, -147, -95, 100);
            cm.spawnMobLimit(8645105, 1, 1280, -132, 100);
            cm.spawnMobLimit(8645105, 1, 1084, -284, 100);
            cm.spawnMobLimit(8645105, 1, 630, -93, 100);
            cm.spawnMobLimit(8645105, 1, 684, -284, 100);
            cm.spawnMobLimit(8645105, 1, 172, -184, 100);
            cm.spawnMobLimit(8645105, 1, -118, -287, 100);
            cm.playerMessage(-1, "消灭该区域的所有怪物，才能移动至下一关卡。");
            cm.fieldEffect_ScreenMsg("aswan/stageEff/stage");
            cm.fieldEffect_ScreenMsg("aswan/stageEff/number/1");
            cm.spawnMobLimit(8645105, 1, 2092, -250, 100);
            cm.spawnMobLimit(8645105, 1, 2158, -93, 100);
            cm.spawnMobLimit(8645105, 1, 1556, 63, 100);
            cm.spawnMobLimit(8645105, 1, 1791, -93, 100);
            cm.spawnMobLimit(8645105, 1, 1723, -341, 100);
            cm.spawnMobLimit(8645105, 1, 1605, -341, 100);
            cm.spawnMobLimit(8645105, 1, 2244, 63, 100);
            cm.spawnMobLimit(8645105, 1, 2754, 63, 100);
            cm.spawnMobLimit(8645105, 1, 2590, -409, 100);
            cm.spawnMobLimit(8645105, 1, 2646, -93, 100);
            cm.spawnMobLimit(8645105, 1, 2982, -219, 100);
            cm.spawnMobLimit(8645105, 1, 2998, -219, 100);
            cm.spawnMobLimit(8645105, 1, 2843, 63, 100);
            cm.dispose()
        }
    }
}

function action993134150(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.spawnMobLimit(8645105, 1, 635, 63, 100);
            cm.spawnMobLimit(8645105, 1, 582, -120, 100);
            cm.spawnMobLimit(8645105, 1, 303, 63, 100);
            cm.spawnMobLimit(8645105, 1, 255, -229, 100);
            cm.spawnMobLimit(8645105, 1, -230, -89, 100);
            cm.spawnMobLimit(8645105, 1, -179, 63, 100);
            cm.spawnMobLimit(8645105, 1, -510, -221, 100);
            cm.spawnMobLimit(8645105, 1, -778, 63, 100);
            cm.spawnMobLimit(8645105, 1, -902, -94, 100);
            cm.playerMessage(-1, "消灭该区域的所有怪物，才能移动至下一关卡。");
            cm.fieldEffect_ScreenMsg("aswan/stageEff/stage");
            cm.fieldEffect_ScreenMsg("aswan/stageEff/number/2");
            cm.spawnMobLimit(8645105, 1, 1292, 63, 100);
            cm.spawnMobLimit(8645105, 1, 1649, -237, 100);
            cm.spawnMobLimit(8645105, 1, 1234, -428, 100);
            cm.spawnMobLimit(8645105, 1, 1155, -88, 100);
            cm.spawnMobLimit(8645105, 1, 1341, 63, 100);
            cm.spawnMobLimit(8645105, 1, 960, 63, 100);
            cm.spawnMobLimit(8645105, 1, 883, -315, 100);
            cm.spawnMobLimit(8645105, 1, 1334, 63, 100);
            cm.spawnMobLimit(8645105, 1, 1540, -88, 100);
            cm.spawnMobLimit(8645105, 1, 1434, -237, 100);
            cm.spawnMobLimit(8645105, 1, 1628, 63, 100);
            cm.spawnMobLimit(8645105, 1, 1578, 63, 100);
            cm.spawnMobLimit(8645105, 1, 2635, -172, 100);
            cm.spawnMobLimit(8645105, 1, 2720, 63, 100);
            cm.spawnMobLimit(8645105, 1, 1866, -330, 100);
            cm.spawnMobLimit(8645105, 1, 2309, -286, 100);
            cm.spawnMobLimit(8645105, 1, 2384, -88, 100);
            cm.spawnMobLimit(8645105, 1, 1899, 63, 100);
            cm.spawnMobLimit(8645105, 1, 2376, -88, 100);
            cm.dispose()
        }
    }
}

function action993134200(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.spawnMobLimit(8645105, 1, 727, -310, 100);
            cm.spawnMobLimit(8645105, 1, 665, 63, 100);
            cm.spawnMobLimit(8645105, 1, 552, -154, 100);
            cm.spawnMobLimit(8645105, 1, 213, -103, 100);
            cm.spawnMobLimit(8645105, 1, 313, 63, 100);
            cm.spawnMobLimit(8645105, 1, 182, -322, 100);
            cm.spawnMobLimit(8645105, 1, -185, 63, 100);
            cm.spawnMobLimit(8645105, 1, -144, -170, 100);
            cm.spawnMobLimit(8645105, 1, -459, -273, 100);
            cm.spawnMobLimit(8645105, 1, -772, -103, 100);
            cm.spawnMobLimit(8645105, 1, -621, 63, 100);
            cm.spawnMobLimit(8645105, 1, -948, 63, 100);
            cm.spawnMobLimit(8645105, 1, -462, -103, 100);
            cm.spawnMobLimit(8645105, 1, -1077, -103, 100);
            cm.playerMessage(-1, "消灭该区域的所有怪物，才能移动至下一关卡。");
            cm.fieldEffect_ScreenMsg("aswan/stageEff/final");
            cm.spawnMobLimit(8645105, 1, 642, 63, 100);
            cm.spawnMobLimit(8645105, 1, 1092, 63, 100);
            cm.spawnMobLimit(8645105, 1, 1211, -97, 100);
            cm.spawnMobLimit(8645105, 1, 842, -310, 100);
            cm.spawnMobLimit(8645105, 1, 1486, -245, 100);
            cm.spawnMobLimit(8645105, 1, 1914, -95, 100);
            cm.spawnMobLimit(8645105, 1, 1594, 63, 100);
            cm.spawnMobLimit(8645105, 1, 2176, -383, 100);
            cm.spawnMobLimit(8645105, 1, 2018, -383, 100);
            cm.spawnMobLimit(8645105, 1, 1733, -95, 100);
            cm.spawnMobLimit(8645105, 1, 1787, -95, 100);
            cm.dispose()
        }
    }
};